package comparer;

import words.Types;

public abstract class TypeComparer {
	private Types origin_noun;
	private Types compared_noun;
	private int count;
	public TypeComparer()
	{
		this.origin_noun = null;
		this.compared_noun = null;
		this.count = 0;
	}
	public void set_origin(Types origin)
	{
		if(origin!=null)
		{
			this.origin_noun = origin;
		}
		else
		{
			this.origin_noun = null;
		}
	}
	public void set_compared(Types compared)
	{
		if(compared!=null)
		{
			this.compared_noun = compared;
		}
		else
		{
			this.compared_noun = null;
		}
	}
	public int getResult()
	{
		return this.count;
	}
	protected Types getOrigin()
	{
		return this.origin_noun;
	}
	protected Types getCompared()
	{
		return this.compared_noun;
	}
	protected void set_count(int count)
	{
		this.count = count;
	}
	public abstract void compare();
}
